﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZoLone.Zo.Extensions
{
    public static class HttpRequestExtensions
    {
        public static bool IsAjax(this HttpRequest request)
        {
            bool isAjaxCall = request.Headers["x-requested-with"] == "XMLHttpRequest";
            return isAjaxCall;
        }
    }
}
